<template>
    <div class="wrapper">
        <div class="left">
            <div class="logo"></div>
            <div class="login">
                <div><b>登录到</b></div>
                <div><b>注册新账号</b></div>
                <span><a href="javascript:;">已有账号？</a></span>
                <span><router-link to="/login"><b>立即登录</b></router-link></span>
                <form>
                    <el-input v-model="input" size="medium" class="username" placeholder="请输入账号"></el-input>
                    <el-input v-model="input" size="medium" class="password" placeholder="请输入登录密码"></el-input>
                    <el-input v-model="input" size="medium" class="password" placeholder="请再次输入登录密码"></el-input>
                    <el-button type="primary submit" @click="onSubmit">继续</el-button>
                </form>
            </div>
            <div class="footer">Copyright @ 2021-2022 QiDianyoupin. All Rights Reserved</div>
        </div>
        <div class="right">
            <div class="top">
                <div><h2>创造未来</h2></div>
                <div>启点优聘为老师与学生创作更好的教育方式</div>
            </div>
            <img src="./static/logbg2.png" alt="">
        </div>
        <router-view></router-view>
    </div>
</template>

<script>
export default {
    name: 'Register'
}
</script>

<style lang="less" scoped>
    .wrapper {
        width: 830px;
        height: 490px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        border: 1px solid #e3e3e3;
        border-radius: 24px;
        box-shadow: 2px 2px 2px 2px #e3e3e3;
        display: flex;
        .left {
            width: 50%;
            height: 100%;
            position: relative;
            .logo {
                width: 131px;
                height: 26.4px;
                background: url('./static/logo.png');
                margin-top: 12px;
                margin-left: 12px;
            }
            .login {
                width: 80%;
                height: 68%;
                position: absolute;
                left: 50%;
                top: 60px;
                transform: translateX(-50%);
                div:nth-child(1),
                div:nth-child(2),
                div:nth-child(3) {
                    color: #000000;
                    font-size: 18px;
                };
                div:nth-child(1) {
                  margin-bottom: 6px;
                }
                div:nth-child(3) {
                    margin-top: 6px;
                    margin-bottom: 12px;
                };
                a {
                    color: #000000;
                    text-decoration: none;
                    font-size: 12px;
                };
                form {
                    margin-top: 28px;
                    .username {
                        font-size: 12px;
                    };
                    .password {
                        margin-top: 12px;
                        font-size: 12px;
                    };
                    .check {
                        line-height: 40px;
                    }
                    .submit {
                        margin-top: 24px;
                        width: 100%;
                        height: 38px;
                        line-height: 10px;
                        background-color: #165DFF;
                    }
                }
            }
            .footer {
                font-size: 12px;
                position: relative;
                bottom: -400px;
                left: 40px;
                opacity: 1;
                color: rgba(0,0,0,0.4);
            }
        }
        .right {
            width: 50%;
            height: 100%;
            background-color: #165DFF;
            .top {
                width: 100%;
                height: 40%;
                background: url('./static/logbg1.png');
                background-size: cover;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                div:nth-child(1) {
                    color: #ffffff;
                    
                }
                div:nth-child(2) {
                    color: #ffffff;
                    font-size: 16px;
                }
                
            }
            img {
                width: 100%;
                height: 300px;
            }
        }
    }
</style>
